<html>
 <head>
  <link rel='stylesheet' type='text/css' href='css/default.css' />
  <link rel='stylesheet' type='text/css' href='css/formate.css' />

  <script language="JavaScript">var session="30cd4d0bcb82";</script>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8" />

<link rel="stylesheet" type="text/css" href="css/combox.css">
<link rel="stylesheet" type="text/css" href="evolution/formate.css" />

<title>Вселенная 4 ОГейм</title>

  <script src="js/utilities.js" type="text/javascript"></script>
  <script language="JavaScript">
  </script>
<script type="text/javascript" src="js/overLib/overlib.js"></script>
<!-- HEADER -->

<script language="JavaScript">
function onBodyLoad() {
    window.setTimeout("reloadImages()", 100);
}

function reloadImages() {
    for (var i = 0; i < document.images.length; ++i) {
      if ((document.images[i].className == 'reloadimage') && (document.images[i].title != "")) {
        document.images[i].src = document.images[i].title;
      }
    }
}
</script>

</head>
<body style="overflow: hidden;" onload="onBodyLoad();" onunload="" >
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
<div id='header_top'><center>
<table class='header'>
<tr class='header' >
<td class='header' style='width:5;' >
	  <table class='header'>
    <tr class='header'>
     <td class='header'><img src="evolution/planeten/small/s_dschjungelplanet03.jpg" width="50" height="50"></td>
     <td class='header'>
	  <table class='header'>

		  <select size="1" onchange="haha(this)">
		  			  			  				  <option value="/game/index.php?page=trader&session=30cd4d0bcb82&cp=34295080&mode=&gid=&messageziel=&re=0" >| Frigid Highlands				  <a href="index.php?page=galaxy&galaxy=1&system=274&position=11&session=30cd4d0bcb82" >[1:274:11]</a></option>
			  			  			  				  <option value="/game/index.php?page=trader&session=30cd4d0bcb82&cp=34423137&mode=&gid=&messageziel=&re=0" >Frigid Moon (Луна)				  <a href="index.php?page=galaxy&galaxy=1&system=274&position=11&session=30cd4d0bcb82" >[1:274:11]</a></option>
			  			  			  				  <option value="/game/index.php?page=trader&session=30cd4d0bcb82&cp=34459320&mode=&gid=&messageziel=&re=0" >| Rocky Waste				  <a href="index.php?page=galaxy&galaxy=2&system=154&position=6&session=30cd4d0bcb82" >[2:154:6]</a></option>
			  			  			  				  <option value="/game/index.php?page=trader&session=30cd4d0bcb82&cp=34304644&mode=&gid=&messageziel=&re=0" >| Lost City				  <a href="index.php?page=galaxy&galaxy=2&system=274&position=5&session=30cd4d0bcb82" >[2:274:5]</a></option>

			  			  			  				  <option value="/game/index.php?page=trader&session=30cd4d0bcb82&cp=34343694&mode=&gid=&messageziel=&re=0" >Lost Moon (Луна)				  <a href="index.php?page=galaxy&galaxy=2&system=274&position=5&session=30cd4d0bcb82" >[2:274:5]</a></option>
			  			  			  				  <option value="/game/index.php?page=trader&session=30cd4d0bcb82&cp=34310005&mode=&gid=&messageziel=&re=0" selected>| Far Oasis				  <a href="index.php?page=galaxy&galaxy=3&system=280&position=5&session=30cd4d0bcb82" >[3:280:5]</a></option>
			  			  			  				  <option value="/game/index.php?page=trader&session=30cd4d0bcb82&cp=34420950&mode=&gid=&messageziel=&re=0" >Far Moon (Луна)				  <a href="index.php?page=galaxy&galaxy=3&system=280&position=5&session=30cd4d0bcb82" >[3:280:5]</a></option>
			  			  			  				  <option value="/game/index.php?page=trader&session=30cd4d0bcb82&cp=34315098&mode=&gid=&messageziel=&re=0" >| Stony Field				  <a href="index.php?page=galaxy&galaxy=4&system=274&position=5&session=30cd4d0bcb82" >[4:274:5]</a></option>
			  			  			  				  <option value="/game/index.php?page=trader&session=30cd4d0bcb82&cp=34316645&mode=&gid=&messageziel=&re=0" >| Колония				  <a href="index.php?page=galaxy&galaxy=4&system=274&position=6&session=30cd4d0bcb82" >[4:274:6]</a></option>

			  			  			  				  <option value="/game/index.php?page=trader&session=30cd4d0bcb82&cp=34439630&mode=&gid=&messageziel=&re=0" >Луна				  <a href="index.php?page=galaxy&galaxy=4&system=274&position=6&session=30cd4d0bcb82" >[4:274:6]</a></option>
			  			  			  				  <option value="/game/index.php?page=trader&session=30cd4d0bcb82&cp=34323220&mode=&gid=&messageziel=&re=0" >| Durance of Hate				  <a href="index.php?page=galaxy&galaxy=4&system=274&position=7&session=30cd4d0bcb82" >[4:274:7]</a></option>
			  		  </select>
	  </table>
     </td>
    </tr>
  </table></td>

<td class='header'>   <table class='header' id='resources' border="0" cellspacing="0" cellpadding="0" padding-right='30' >
	    <tr class='header'>
	    
		     <td align="center" width="85" class='header'>
		      <img border="0" src="evolution/images/metall.gif" width="42" height="22">
		     </td>
		     
		     <td align="center" width="85" class='header'>
		      <img border="0" src="evolution/images/kristall.gif" width="42" height="22">
		     </td>
		     
		     <td align="center" width="85" class='header'>

		      <img border="0" src="evolution/images/deuterium.gif" width="42" height="22">
		     </td>
	     		     
		     <td align="center" width="85" class='header'>
		     <a href=index.php?page=micropayment&session=30cd4d0bcb82>
		      <img border="0" src="img/dm_klein_2.jpg" width="42" height="22" title="Тёмная материя"></a>
		     </td>	     
	        		     
		     <td align="center" width="85" class='header'>
		      <img border="0" src="evolution/images/energie.gif" width="42" height="22">
		     </td>

	    </tr>

	    <tr class='header'>
	     <td align="center" class='header' width="85"><i><b><font color="#ffffff">Металл</font></b></i></td>
	     <td align="center" class='header' width="85"><i><b><font color="#ffffff">Кристалл</font></b></i></td>
	     <td align="center" class='header' width="85"><i><b><font color="#ffffff">Дейтерий</font></b></i></td>
	     	     	<td align="center" class='header' width="85"><i><b><font color="#ffffff">Тёмная материя</font></b></i></td>	
	          
	     <td align="center" class='header' width="85"><i><b><font color="#ffffff">Энергия</font></b></i></td>

	    </tr>
	    <tr class='header'>
	     <td align="center" class='header' width="90"><font >3.423.699</font></td>
	     <td align="center" class='header' width="90"><font color='#ff0000'>3.500.000</font></td>
	     <td align="center" class='header' width="90"><font >22.963</font></td>
	     			 <td align="center" class='header' width="90"><font color="#FFFFFF">20.000</font></DIV></td>
	        
	     <td align="center" class='header' width="90"><font >1.074</font>/11.001</td>

	    </tr>
   </table></td>
	<td class='header'>
<table class='header' align=left>
	 <tr class='header'>


	 <td align="center" width="35" class='header'>
	     <a href='index.php?page=micropayment&session=30cd4d0bcb82&session=30cd4d0bcb82' accesskey="o">
	  <img border="0" src="img/commander_ikon_un.gif" width="32" height="32" alt="Командир ОГейма"
		onmouseover="return overlib('<center><font size=1 color=white><b><br>Командир ОГейма</font><br><br><a href=index.php?page=micropayment&session=30cd4d0bcb82&session=30cd4d0bcb82><font size=1 color=lime>Заказать!</b></font></a></center>', LEFT, WIDTH, 150);" onmouseout="return nd();">

	  </a>
	 </td>
	 <td align="center" width="35" class='header'>
	  <a href='index.php?page=micropayment&session=30cd4d0bcb82&session=30cd4d0bcb82' accesskey="o">
	  <img border="0" src="img/admiral_ikon_un.gif" width="32" height="32" alt="Адмирал"
		onmouseover="return overlib('<center><font size=1 color=white><b><br>Адмирал</font><br><font size=1 color=skyblue>&amp;nbsp;Макс. кол-во флотов +2</font><br><br><a href=index.php?page=micropayment&session=30cd4d0bcb82&session=30cd4d0bcb82><font size=1 color=lime>Заказать!</b></font></a></center>', LEFT, WIDTH, 150);" onmouseout="return nd();">

	  </a>
	 </td>
	 <td align="center" width="35" class='header'>

	  <a href='index.php?page=micropayment&session=30cd4d0bcb82&session=30cd4d0bcb82' accesskey="o">
	  <img border="0" src="img/ingenieur_ikon_un.gif" width="32" height="32" alt="Инженер"
		onmouseover="return overlib('<center><font size=1 color=white><b><br>Инженер</font><br><font size=1 color=skyblue>Сокращает вдвое потери в обороне+10% больше энергии</font><br><br><a href=index.php?page=micropayment&session=30cd4d0bcb82&session=30cd4d0bcb82><font size=1 color=lime>Заказать!</b></font></a></center>', LEFT, WIDTH, 150);" onmouseout="return nd();">
	  </a>
	 </td>
	 <td align="center" width="35" class='header'>
	  <a href='index.php?page=micropayment&session=30cd4d0bcb82&session=30cd4d0bcb82' accesskey="o">
	  <img border="0" src="img/geologe_ikon_un.gif" width="32" height="32" alt="Геолог"
		onmouseover="return overlib('<center><font size=1 color=white><b><br>Геолог</font><br><font size=1 color=skyblue>+10% доход от шахты</font><br><br><a href=index.php?page=micropayment&session=30cd4d0bcb82&session=30cd4d0bcb82><font size=1 color=lime>Заказать!</b></font></a></center>', LEFT, WIDTH, 150);" onmouseout="return nd();">
	  </a>
	 </td>

	 <td align="center" width="35" class='header'>
	  <a href='index.php?page=micropayment&session=30cd4d0bcb82&session=30cd4d0bcb82' accesskey="o">
	  <img border="0" src="img/technokrat_ikon_un.gif" width="32" height="32" alt="Технократ" 
		onmouseover="return overlib('<center><font size=1 color=white><b><br>Технократ</font><br><font size=1 color=skyblue>+2 уровень шпионажа, 25% меньше времени на исследования</font><br><br><a href=index.php?page=micropayment&session=30cd4d0bcb82&session=30cd4d0bcb82><font size=1 color=lime>Заказать!</b></font></a></center>', LEFT, WIDTH, 150);" onmouseout="return nd();">
	  </a>
	 </td>
	 <td align="center" class='header'></td>
	</tr>
</table></td>
</tr>
</table>

</div><!-- END HEADER -->

<!-- LEFTMENU -->

	<div id='leftmenu'>
	
<script language="JavaScript">
function fenster(target_url,win_name) {
  var new_win = window.open(target_url,win_name,'scrollbars=yes,menubar=no,top=0,left=0,toolbar=no,width=550,height=280,resizable=yes');
  new_win.focus();
}
</script>

<script language="JavaScript">
function popUp(URL) {
  day = new Date();
  id = day.getTime();
  eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=0,resizable=1,width=120,height=60,alwaysLowered=Yes');");
}

</script>


<center>

<div id='menu'>

<a href="mailto:barrierefrei@ogame.de" title="Проблемы, касающиеся игроков со слабым зрением, отправляйте на barrierefrei@ogame.de." style="width:1px;"></a>
<p style="width:110px;"><NOBR>Вселенная 4 (<a href="index.php?page=changelog&session=30cd4d0bcb82">v 0.84</a>)</NOBR></p>
<table width="110" cellspacing="0" cellpadding="0">
 <tr>
  <td><img src="evolution/gfx/ogame-produktion.jpg" width="110" height="40" /></td>
 </tr>

    
 <tr>
  <td>

   <div align="center"><font color="#FFFFFF">
     <a href='index.php?page=overview&session=30cd4d0bcb82' accesskey="o">Обзор</a>
    </font></div>
  </td>
 </tr>

 
 <tr>
  <td>
   <div align="center"><font color="#FFFFFF">

     <a href='index.php?page=b_building&session=30cd4d0bcb82' accesskey="z">Постройки</a>
    </font></div>
  </td>
 </tr>

 <tr>
  <td>
   <div align="center"><font color="#FFFFFF">
     <a href='index.php?page=resources&session=30cd4d0bcb82' accesskey="s">Сырьё</a>

    </font></div>
  </td>
 </tr>

  <tr>
  <td>
   <div align="center" ><font color="#FFFFFF">
     <a href='index.php?page=trader&session=30cd4d0bcb82' accesskey=""><font color='FF8900'>Скупщик</font></a> <!-- TODO Loca Keys -->

    </font></div>
  </td>
 </tr>
 
  
 <tr>
  <td>
   <div align="center"><font color="#FFFFFF">
     <a href='index.php?page=buildings&session=30cd4d0bcb82&mode=Forschung' accesskey="i">Исследования</a>
    </font></div>

  </td>
 </tr>

 <tr>
  <td>
   <div align="center"><font color="#FFFFFF">
     <a href='index.php?page=buildings&session=30cd4d0bcb82&mode=Flotte' accesskey="v">Верфь</a>
    </font></div>
  </td>

 </tr>

 <tr>
  <td>
   <div align="center"><font color="#FFFFFF">
     <a href='index.php?page=flotten1&session=30cd4d0bcb82&mode=Flotte' accesskey="f">Флот</a>
    </font></div>
  </td>
 </tr>

 <tr>
  <td>
   <div align="center"><font color="#FFFFFF">
     <a href='index.php?page=techtree&session=30cd4d0bcb82' accesskey="t">Технологии</a>
    </font></div>
  </td>
 </tr>

 <tr>
  <td>
   <div align="center"><font color="#FFFFFF">
     <a href='index.php?page=galaxy&session=30cd4d0bcb82&no_header=1' accesskey="g">Галактика</a>
    </font></div>
  </td>
 </tr>

 <tr>

  <td>
   <div align="center"><font color="#FFFFFF">
     <a href='index.php?page=buildings&session=30cd4d0bcb82&mode=Verteidigung' accesskey="x">Оборона</a>
    </font></div>
  </td>
 </tr>

 <tr>
  <td><img src="evolution/gfx/info-help.jpg" width="110" height="19"></td>

 </tr>

 <tr>
  <td>
   <div align="center"><font color="#FFFFFF">
     <a href='index.php?page=allianzen&session=30cd4d0bcb82' accesskey="a">Мой альянс</a>
    </font></div>
  </td>
 </tr>

  <tr>
  <td>
   <div align="center"><font color="#FFFFFF">
    <a href="http://board.ogame.ru/" target="_blank" accesskey="m" >Форум</a><!-- external link to board -->
   </font></div>
  </td>
 </tr>
 

 	<tr>

	   <td align=center>
	   <a id='darkmatter2' style='cursor:pointer; width:110px;'
	     href='index.php?page=micropayment&session=30cd4d0bcb82' accesskey="o"><b>Офицерское казино</a></b>
	   </div>
	  </td>
	 </tr>
 
 <tr>
  <td>
   <div align="center"><font color="#FFFFFF">

  <a href='index.php?page=statistics&session=30cd4d0bcb82' accesskey="k">Статистика</a>
    </font></div>
  </td>
 </tr>

 <tr>
  <td>
   <div align="center"><font color="#FFFFFF">
     <a href='index.php?page=suche&session=30cd4d0bcb82' accesskey="p">Поиск</a>

    </font></div>
  </td>
 </tr>

 <tr>
  <td>
   <div align="center"><font color="#FFFFFF">
    <a href="http://tutorial.ogame.ru" target="_blank" accesskey="^" >Туториал</a><!-- external link to ogame tutorial -->
   </font></div>

  </td>
 </tr>
 
 <tr>
  <td><img src="evolution/gfx/user-menu.jpg" width="110" height="35"></td>
 </tr>

 <tr>
  <td>
   <div align="center"><font color="#FFFFFF">

     <a href='index.php?page=messages&dsp=1&session=30cd4d0bcb82' accesskey="b">Сообщения</a>
    </font></div>
  </td>
 </tr>

 <tr>
  <td>
   <div align="center"><font color="#FFFFFF">
     <a href='#' onclick='fenster("index.php?page=notizen&session=30cd4d0bcb82&no_header=1", "Notizen");' accesskey="e">Заметки</a>

    </font></div>
  </td>
 </tr>

 <tr>
  <td>
   <div align="center"><font color="#FFFFFF">
     <a href='index.php?page=buddy&session=30cd4d0bcb82' accesskey="d">Друзья</a>
    </font></div>

  </td>
 </tr>

 <tr>
  <td>
   <div align="center"><font color="#FFFFFF">
     <a href='index.php?page=options&session=30cd4d0bcb82' accesskey="n">Настройки</a>
    </font></div>
  </td>

 </tr>

 
 <tr>
  <td>
   <div align="center"><font color="#FFFFFF">
     <a href='index.php?page=logout&session=30cd4d0bcb82' accesskey="q">Выход</a>
    </font></div>
  </td>
 </tr>

 
 

 <tr>
  <td>
   <div align="center"><font color="#FFFFFF">
     <a href="http://ogame.ru/?ajax=true&page=rules" target="_blank">Правила</a> <!-- external link to rules -->
   </font></div>
  </td>
 </tr>

 <tr>
  <td>
   <div align="center"><font color="#FFFFFF">
    <a href="http://agb.gameforge.de/index.php?lang=ru&art=impress&special=&&f_text=b1daf2&f_text_hover=ffffff&f_text_h=061229&f_text_hr=061229&f_text_hrbg=061229&f_text_hrborder=9EBDE4&f_text_font=arial%2C+arial%2C+arial%2C+sans-serif&f_bg=000000" target="_blank">О нас</a> <!-- external link to impressum -->
   </font></div>
  </td>
 </tr>

 </table>
 </center>

	</div>

<!-- END LEFTMENU -->

<!-- CONTENT AREA -->
<div id='content'>
<center>
<script>
storage      = new Array();
factor       = new Array();
offer_id     = ;
offer_amount = ;
offer_costs  = 0;

function number_format(number, decimals, dec_point, thousands_sep) {
  var exponent = "";
  var numberstr = number.toString ();
  var eindex = numberstr.indexOf ("e");
  if (eindex > -1)  {
    exponent = numberstr.substring (eindex);
    number = parseFloat (numberstr.substring (0, eindex));
  }
  if (decimals != null)  {
    var temp = Math.pow (10, decimals);
    number = Math.round (number * temp) / temp;
  }
  var sign = number < 0 ? "-" : "";
  var integer = (number > 0 ? Math.floor (number) : Math.abs (Math.ceil (number))).toString ();
  var fractional = number.toString ().substring (integer.length + sign.length);
  dec_point = dec_point != null ? dec_point : ".";
  fractional = decimals != null && decimals > 0 || fractional.length > 1 ? (dec_point + fractional.substring (1)) : "";
  if (decimals != null && decimals > 0)  {
  	for (i = fractional.length - 1, z = decimals; i < z; ++i)
    fractional += "0";
  }
  thousands_sep = (thousands_sep != dec_point || fractional.length == 0) ? thousands_sep : null;
  if (thousands_sep != null && thousands_sep != ""){
	for (i = integer.length - 3; i > 0; i -= 3)integer = integer.substring (0 , i) + thousands_sep + integer.substring (i);
  }
  return sign + integer + fractional + exponent;
}



function setStorage(id, value) {
	document.getElementById(id + '_storage').innerHTML = number_format(value, 0, '', '.');
}

function setValue(id, value) {
	if (id != offer_id)	document.getElementsByName(id + '_value')[0].value = number_format(value, 0, '', '.');
	else                document.getElementById(id + '_value').innerHTML   = number_format(value, 0, '', '.');
}


function getValue(id) {
	if (id != offer_id)	result = document.getElementsByName(id + '_value')[0].value.replace(/^0+/,"");
	else                result = document.getElementById(id + '_value').innerHTML.replace(/^0+/,"");
	result = parseInt(result.split('.').join(''));
	if (isNaN(result)) return 0;
	else  			   return result;
}

function calcCosts(id, amount) {
	return Math.floor(amount * factor[offer_id] / factor[id]);
}

function calcInputFromCosts(id, amount) {
	return Math.max(Math.round(amount / factor[offer_id] * factor[id]),0);
}

function displayOfferCosts() {
	setValue(offer_id, offer_costs);
}

function getFreeOfferCosts() {
	value = Math.round(offer_amount - (offer_costs));
	return value;
}

function addOfferCosts(costs) {
	offer_costs = offer_costs + costs;
}

function checkValue(id) {
	if (getValue(id) < 0) {
		setValue(id, getValue(id) * -1);
	} 

	if (getValue(id) > storage[id]) {
		setValue(id, storage[id]);
	}	
	free_id     = 6 - id - offer_id; 
	offer_costs = calcCosts(free_id, getValue(free_id));
	costs = calcCosts(id, getValue(id));
	if (costs > getFreeOfferCosts()) {
		setValue(id, calcInputFromCosts(id, getFreeOfferCosts()));
		costs = calcCosts(id, getValue(id));
	}
	addOfferCosts(costs);
	displayOfferCosts();
	setStorage(id, storage[id] - getValue(id));	
}

function setMaxValue(id) {
	setValue(id, 99999999999999);
	checkValue(id);
}

</script>

<form action="index.php?page=trader&session=30cd4d0bcb82" name="TraderForm" method="POST">
	<TABLE class="c" width='520px'>
		<tr>
	
			<td class="c"align='center' >Скупщик не найден!</td>
	
			</tr>
		<tr>
			<th class="c" align='center'><br>
				Вы хотите продать				<select name="offer_id" style="color: lime;">

				  <option value="1" >Металл</option>
				  <option value="2" >Кристалл</option>
				  <option value="3" >Дейтерий</option>
				</select>		
				!				<br>
				<div id='darkmatter2'>Вызвать скупщика стоит 2500 тёмной материи.</div><br><br>

				<input type='submit' name='call_trader' value='Вызвать скупщика'>
			</th>
		</tr>
	</TABLE>	
	<br>
</form>	
	<br><br><br><br>
</center>
</div>
<!-- END CONTENT AREA -->
<script>
messageboxHeight=0;
errorboxHeight=0;
contentbox = document.getElementById('content');
</script>

<div id='messagebox'>
<center>
</center>
</div>
<div id='errorbox'>
<center>
Ошибка!<br></center>
</div>

<script>
headerHeight = 81;
errorbox.style.display='block';
errorbox.style.top=parseInt(headerHeight+messagebox.offsetHeight+5)+'px';
contentbox.style.top=parseInt(headerHeight+errorbox.offsetHeight+messagebox.offsetHeight+10)+'px';
if (navigator.appName=='Netscape'){if (window.innerWidth<1020){document.body.scroll='no';}   contentbox.style.height=parseInt(window.innerHeight)-messagebox.offsetHeight-errorbox.offsetHeight-headerHeight-20;
if(document.getElementById('resources')) {   document.getElementById('resources').style.width=(window.innerWidth*0.4);}}
 else {
if (document.body.offsetWidth<1020){document.body.scroll='no';}   contentbox.style.height=parseInt(document.body.offsetHeight)-messagebox.offsetHeight-headerHeight-errorbox.offsetHeight-20;document.getElementById('resources').style.width=(document.body.offsetWidth*0.4);
}for (var i = 0; i < document.links.length; ++i) {
  if (document.links[i].href.search(/.*redir\.php\?url=.*/) != -1) {
    document.links[i].target = "_blank";
  }
}

</script>
<style>
.layer {
	z-index:999999999;
	position:absolute;
	left: 0;
	right: 0;
	top: 100px;
	margin-left: auto;
	margin-right: auto;
	width: 757px; 
	height: 475px; 
	background-color: #040e1e;
	border: 3px double orange;
	padding: 0;
	opacity: .90;
}
</style>
 </body>
</html>